package com.rosca.converters.number2word;

/**
 * User: vrosca
 * Date: 7/27/11
 * Time: 10:50 AM
 * &copy; PFA Rosca Val Dan Dar Ion 2011
 * <p/>
 * <p>
 * An interface for the Number to Word converters,
 * providing a spell(int) method
 * </p>
 */
public interface N2WConverter {
    /**
     * Converts a number to word format (spells a number)
     *
     * @param number the number to spell
     * @return the spelled number
     * @throws NumberTooLargeException when
     */
    public String spell(int number) throws NumberTooLargeException;
}
